package com.lmk;

import java.util.Scanner;

public class AdministratorTest {
    public static void main(String[] args) {
         Administrator gly=new Administrator();
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入用户名：");

        gly.username= sc.next();
        System.out.println("请输入密码");
        gly.password=sc.next();
        boolean success=gly.login();
        if(success){
            System.out.println("登陆成功欢迎："+gly.username);
            gly.logout();
        }else {
            System.out.println("抱歉登陆失败");
        }

    }
}
